package com.example.accessingdatajpa;

import javax.persistence.Embeddable;
import java.io.Serializable;

/**
 * @author caiwl
 * @date 2021/6/8 16:03
 */
@Embeddable
public class TwoIdDemoKey implements Serializable {
    private Integer userId;
    private Integer roleId;

    public TwoIdDemoKey() {
    }

    public TwoIdDemoKey(Integer userId, Integer roleId) {
        this.userId = userId;
        this.roleId = roleId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }
}
